<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<style>
.actually{
    position: relative;
    float: left;
    height: 300px;
    width: 30%;
    margin-left: 2%;
    margin-right: 2%;
    background-color: #0f0;
}
.actually>.actbox{
    height: 100%;
    width: 100%;
}
.actually>.actbox>a{
    height: 100%;
    width: 100%;
    display: block;
}

.actbox>a>img{
    width: 100%;
    height:100%;
}

.actbox>a>img{
    transition-property: width,height;
    transition-duration: 2s;
}
.actbox>a>img:hover{
    transform: scale(2,2);
}
    </style>

<body>
    <div class="actually">
        <div class="actbox">
            <a href="https://baike.baidu.com/item/单身狗/16528775?fr=aladdin"> <img src="img/1.jpg" alt=""></a>
        </div>
    </div>
</body>
</html>